import api from '@/api/console/consoleIndex'
import { intelmsg,operation,consoleApiModel } from '@/type/console/intelConsole'; 

export const searchOpers = (query:string):RES<intelmsg> => api.get('/intel/searchOpers', {
  withCredentials: true,
  params:{query}
});

export const setConsole = (id:string,value:string):RES<consoleApiModel> => api.get('/intel/setConsole', {
    withCredentials: true,
    params:{
        "id":id,
        "value":value
    }
  });

  export const rollback = ():RES<{res:boolean}> => api.get('/rollback', {
    withCredentials: true,
  });